package solutions.ferpa.ztest.intf;

import br.com.telescope.t2.ModuleNavigator;
import br.com.telescope.t2.ServiceNavigation;

public class ModFuncoes extends ModuleNavigator {
    
    public ModFuncoes() {
        
        setGlobalName("RTSYSINF.MOD_FUNCOES");
        setInitialService(CadFuncao.class, "QUERY");
        
        addNavigation((new ServiceNavigation())
                .id("752520")
                .name("FUNC")
                .label("Função")
                .destination(CadFuncao.class)
                .feature("UPDATE")
                .parameterName("A_ID")
                );
        addNavigation((new ServiceNavigation())
                .id("752521")
                .name("INTF")
                .label("Acessos")
                .destination(CadFuncaoInterface.class)
                .feature("LIST")
                .parameterName("P_FUNCAO_ID")
                );
        addNavigation((new ServiceNavigation())
                .id("752522")
                .name("OPFU")
                .label("Operações")
                .destination(CadFuncaoOperacao.class)
                .feature("LIST")
                .parameterName("P_FUNCAO_ID")
                );
        addNavigation((new ServiceNavigation())
                .id("16331569")
                .name("USUA")
                .label("Usuários")
                .destination(CadFuncaoUsuarios.class)
                .feature("LIST")
                .parameterName("P_FUNCAO_ID")
                );
    }
}
